import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * broadcast模块-象数配方
 */
@Entity('broadcast_recipe')
export class BroadcastRecipeEntity extends BaseEntity {

  @Column({ comment: '象数', nullable: true })
  numeral: string;

  @Column({ comment: '象数名称', nullable: true })
  name: string;

  @Column({ comment: '父级ID', nullable: true })
  parentId: string;

  @Column({ comment: '状态 0-不置顶 1-置顶', default: 0 })
  topping: number;

  @Column({ comment: '搜索关键字', nullable: true })
  keywords: string;

  @Column({ comment: '描述', nullable: true,  type: 'longtext' })
  description: string[];

  children: BroadcastRecipeEntity[];
}
